package com.jdzy.model.student.pojos;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.jdzy.model.common.pojos.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.math.BigDecimal;
import java.util.Date;

@Data
@ApiModel(description = "学生的成绩")
@TableName("grade")
public class Grade extends BaseEntity {

    @ApiModelProperty(value = "学号stuId")
    @TableField(value = "stu_id")
    private String stuId;

    @ApiModelProperty(value = "考试成绩")
    @TableField(value = "score")
    private BigDecimal score;

    @ApiModelProperty(value = "综测分数")
    @TableField(value = "zc_score")
    private BigDecimal zcScore;
    @ApiModelProperty(value = "总分数")
    @TableField(value = "all_score")
    private BigDecimal allScore;

    @ApiModelProperty(value = "成绩日期")
    @TableField(value = "grade_date")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT-8")
    private Date gradeDate;

}
